package com.ztftrue.ble;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by ztftrue on 2017/6/15
 */

public class BleClass {


    /**
     * uuid : 4adbe522-80a6-402f-b64a-68575b046671
     * major : 10000
     * minor : 5000
     * exhibit_id : szjybwg_zx1_htl
     * exhibit_name : 汉推楼（体验馆）
     */

    private String uuid;
    private int major;
    private int minor;
    private String exhibit_id;
    private String exhibit_name;

    public static BleClass objectFromData(String str) {

        return new com.google.gson.Gson().fromJson(str, BleClass.class);
    }

    public static List<BleClass> arrayBleClassFromData(String str) {

        Type listType = new com.google.gson.reflect.TypeToken<ArrayList<BleClass>>() {
        }.getType();

        return new com.google.gson.Gson().fromJson(str, listType);
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public void setMajor(int major) {
        this.major = major;
    }

    public void setMinor(int minor) {
        this.minor = minor;
    }

    public void setExhibit_id(String exhibit_id) {
        this.exhibit_id = exhibit_id;
    }

    public void setExhibit_name(String exhibit_name) {
        this.exhibit_name = exhibit_name;
    }

    public String getUuid() {
        return uuid;
    }

    public int getMajor() {
        return major;
    }

    public int getMinor() {
        return minor;
    }

    public String getExhibit_id() {
        return exhibit_id;
    }

    public String getExhibit_name() {
        return exhibit_name;
    }
}
